#include "main.h"

int main()
{
	std::ifstream file_in("in.txt");
	std::ofstream file_out("out.txt");
	long_number x, y;
	while(file_in >> x >> y)
	{
		if (y == 0)
		{
			file_out << "<error>" << "\n\n\n";
		}
		else
		{
			file_out << x / y << ' ' << x % y << "\n\n";
		}
	}
	return 0;
}
